package com.td.framework.webmanager.domain;

/**
 * AppsysMksybId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AppsysMksybId implements java.io.Serializable {

	// Fields

	private String xtdm;
	private String mkdm;

	// Constructors

	/** default constructor */
	public AppsysMksybId() {
	}

	/** full constructor */
	public AppsysMksybId(String xtdm, String mkdm) {
		this.xtdm = xtdm;
		this.mkdm = mkdm;
	}

	// Property accessors

	public String getXtdm() {
		return this.xtdm;
	}

	public void setXtdm(String xtdm) {
		this.xtdm = xtdm;
	}

	public String getMkdm() {
		return this.mkdm;
	}

	public void setMkdm(String mkdm) {
		this.mkdm = mkdm;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AppsysMksybId))
			return false;
		AppsysMksybId castOther = (AppsysMksybId) other;

		return ((this.getXtdm() == castOther.getXtdm()) || (this.getXtdm() != null
				&& castOther.getXtdm() != null && this.getXtdm().equals(
				castOther.getXtdm())))
				&& ((this.getMkdm() == castOther.getMkdm()) || (this.getMkdm() != null
						&& castOther.getMkdm() != null && this.getMkdm()
						.equals(castOther.getMkdm())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getXtdm() == null ? 0 : this.getXtdm().hashCode());
		result = 37 * result
				+ (getMkdm() == null ? 0 : this.getMkdm().hashCode());
		return result;
	}

}